package org.zlpt.entity.bo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * {@code @author:} wisecoach
 * {@code @date:} 2023/4/24 上午10:24
 * {@code @version:} 1.0.0
 */

@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Data
public class EntryTable extends EntryContent {
    /**
     * 列数
     */
    private Integer colNum;
    /**
     * 表头信息
     */
    private List<EntryCell> headers;
    /**
     * 所有单元格
     */
    private List<EntryCell> cells;
    /**
     * 表尾信息
     */
    private List<EntryCell> footers;

    @Data
    public static class EntryCell {
        // 合并单元格的跨row
        private int rowSpan;
        // 合并单元格的跨col
        private int colSpan;
        // 单元格内数据
        private String text;
    }
}
